package com.be.beadmin.device.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;


/**
 * @website
 * @description /
 * @author chenxu
 * @date 2023-08-30
 **/
@Entity
@Getter
@Setter
@Table(name="t_de_energy_info")
public class EnergyInfo extends BaseEntity {

    @Column(name = "`area`",nullable = false,columnDefinition = "COMMENT '生产区域'")
    private String area;

    @Column(name = "`day`",nullable = false,columnDefinition = "COMMENT '日'")
    private Integer day;

    @Column(name = "`device_id`",nullable = false,columnDefinition = "COMMENT '设备编号'")
    private String deviceId;

    @Column(name = "`device_name`",nullable = false,columnDefinition = "COMMENT '设备名称'")
    private String deviceName;

    @Column(name = "`energy_item`",nullable = false,columnDefinition = "COMMENT '能源介质'")
    private String energyItem;

    @Column(name = "`month`",nullable = false,columnDefinition = "COMMENT '月'")
    private Integer month;

    @Column(name = "`period`",nullable = false,columnDefinition = "COMMENT '计量周期'")
    private String period;

    @Column(name = "`scale`",nullable = false,columnDefinition = "COMMENT '计量刻度'")
    private Integer scale;

    @Column(name = "`unique_identifier`",nullable = false,columnDefinition = "COMMENT '唯一标识'")
    private String uniqueIdentifier;

    @Column(name = "`unit`",nullable = false,columnDefinition = "COMMENT '计量单位'")
    private String unit;

    @Column(name = "`update_by`",nullable = false,columnDefinition = "COMMENT '更新人'")
    private String updateBy;

    @Column(name = "`value`",nullable = false,columnDefinition = "COMMENT '计量值'")
    private Float value;

    @Column(name = "`year`",nullable = false,columnDefinition = "COMMENT '年'")
    private Integer year;


}
